package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 学习聊天表
 * @TableName t_learn_chat
 */
@TableName(value ="t_learn_chat")
@Data
public class LearnChat implements Serializable {
    /**
     * 对话id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 会话标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 创建用户 id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 初始提示词
     */
    @TableField(value = "initPrompt")
    private String initPrompt;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 编辑时间
     */
    @TableField(value = "editTime")
    private Date editTime;

    /**
     * 更改时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;
    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}